<?php
$this->headTitle($this->translate('Group manage'));
$this->headLink()
    ->appendStylesheet($this->STATIC_URL. '/themes/file.css');
$this->headStyle('
div.filelist dl dt a {
	background-image:url("'. $this->STATIC_URL .'/themes/icons/directory.png");
}'); ?>

<h2>
	<span><?php echo $this->translate('Floor manage')?></span>
	<a href="<?php echo $this->url(array(
		'action'=> 'create'
		))?>"><?php echo $this->translate('Create floor')?></a>
</h2>

<dl>
<dt>&nbsp;</dt>
<dd>
<fieldset>
    <legend>楼栋列表</legend>
    <div class="filelist">
    <p>
        <a href="<?php echo $this->url(array(
            'controller'=> 'street',
            'action'=> 'index'))?>">返回顶级</a> »
        <a href="<?php echo $this->url(array(
            'controller'=> 'village',
            'action'=> 'manage',
            'aid'=> $this->street->sid))?>"><?php echo $this->street->name?></a> »
        <a href="<?php echo $this->url(array(
            'controller'=> 'group',
            'action'=> 'manage',
            'aid'=> $this->village->aid))?>"><?php echo $this->village->name?></a> »
            <?php echo $this->group->name?>
    </p>
<?php if (count($this->entries)): ?>
<?php foreach ($this->entries as $floor): ?>
    <dl>
        <dt><a href="<?php echo $this->url(array(
            'controller'=> 'floor',
            'action'=> 'modify',
            'aid'=> $floor->aid));?>"></a></dt>
        <dd><?php echo $floor->number?>号楼</dd>
    </dl>
<?php endforeach;?>
<?php endif;?>
    </div>
</fieldset>

	<input type="button" onClick="location.href='<?php echo $this->url(array(
        'controller'=> 'group',
		'action'=> 'modify',
		'aid'=> $this->group->aid
		))?>'" value="编辑<?php echo $this->group->name?>" />
</dd>
</dl>